home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
pc_board
/
scrdl_21.zip
/
SCRIPTDL.DOC
< prev
next >
Wrap
Text File
|
1992-03-06
|
3KB
|
85 lines
SCRIPTDL.exe - convert from script file format to command delimited
text file. Version 2.1 03-06-92
------------------------------------------
Scriptdl.exe is a fairly simple-minded program that I use to convert my
PCBoard version 14.5a NEWASK "answer" file into a comma delimited file for
later input to a database program. It converts a file of records that look
something like this:
*************************************************************
FROM: SOME USER, 02-12-92 (18:00) Node 3 Sec 10 Exp 02-20-92
Q: Your Address?
A: 123 E. Nowhere
Q: City, State, Zip?
A: Podunk, KS, 12345
Q: Phone ?
A: 555-1212
To a file with records that look like this:
"SOME USER", "02-12-92", "123 E. Nowhere", "Podunk, KS, 12345", "555-1212"
------------------------------------------
To use the program, type:
scriptdl answer_file_name output_file_name
on the command line, or type scriptdl and press ENTER to see a usage
reminder. If the input file (answer_file_name) can not be found, the
program will complain and exit. If the output file (output_file_name)
can not be opened in append mode, the program will also issue a complaint
and exit.
------------------------------------------
Some notes:
===========
* The user name and log-on date from the "FROM:" line are always the first
two output fields, unless the file does not have any "FROM:" lines.
* All "A:" lines are turned into an output field in the output file.
* All other lines are ignored.
* The input file is only READ from, it is not changed in any manner.
* The output file is always APPENEDED to.
The last two notes mean that if you run the program several times, you
will end up with several copies of the some records in the file - if you
want the input file deleted after being processed - you have to do it
yourself.
Unlike other document files I have read, I am not going into an entire
chapter here on how this program is guaranteed to basically do nothing,
and if the "nothing that it does" happens to destroy your hard disk,
that is your own tough luck.
This program works for me on my system and does what I need it to do.
If it doesn't work for you on your system - please let me know and I will
attempt to fix it. You use the program at your own risk, and if you are
silly enough to name COMMAND.COM as your output file then you deserve what
you get! Just remember how much you paid for this. <g> .......
Robert Briggs
SYSOP of Bob and Kathy's BBS
P.O. Box 571241
Murray, UT 84157-1241
(801) 262-3822 (USR HST Dual Standard)
FidoNet: 1:311/11